package com.Java.train.business.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 每日车厢
 * </p>
 *
 * @author luomoxingchen
 * @since 2024-09-24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("daily_train_carriage")
@ApiModel(value = "DailyTrainCarriage对象", description = "每日车厢")
@ToString
public class DailyTrainCarriage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("日期")
    @TableField("date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty("车次编号")
    @TableField("train_code")
    private String trainCode;

    @ApiModelProperty("箱序")
    @TableField("idx")
    private Integer idx;

    @ApiModelProperty("座位类型|枚举[SeatTypeEnum]")
    @TableField("seat_type")
    private String seatType;

    @ApiModelProperty("座位数")
    @TableField("seat_count")
    private Integer seatCount;

    @ApiModelProperty("排数")
    @TableField("line_count")
    private Integer lineCount;

    @ApiModelProperty("列数")
    @TableField("col_count")
    private Integer colCount;

    @ApiModelProperty("新增时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
